import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import store from './store'

import toast from 'components/common/toast'
// 优化插件
import FastClick from 'fastclick'
import VueLazyload from 'vue-lazyload'

Vue.config.productionTip = false
Vue.use(ElementUI);

//安装toast插件
Vue.use(toast)

//解决移动端300ms延迟
FastClick.attach(document.body)
// 图片懒加载
Vue.use(VueLazyload)
// Vue.use(VueLazyload,{
//   load:import('./assetsd/xxx.png')
// })
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
